package com.moonce.api.mapper;

import com.moonce.api.annotation.MyBatis;
import com.moonce.api.model.User;
import com.moonce.api.util.Pagination;

import java.util.List;

@MyBatis
public interface UserMapper {

    List<User> listByPage(Pagination<User> pagination);

    List<User> listAll(User user);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);
}